var express = require('express');
var request = require('request');
var crypto = require('crypto');
var moment = require('moment');
var router = express.Router();
var config = require('../config');
var mysql = require('../util').mysql;
var actInfo = 'activity_info';

/*
router.get('/', function (req, res, next) {
  console.log(req);
  mysql(actInfo)
    .where({}).select()
    .then(function (ret) {
      console.log(ret);
      res.json(ret);
    })
});
*/
router.get('/', function (req, res, next) {
  //request  response
  //console.log(req);
  var tmp = [];
  var j = 0;
  var i = 0;
  var ret = [];
  var promises = [];
  var promises2 = [];
  var promises3 = [];
  //回调函数会先执行完回调函数之外的部分，再执行回调函数
  //用promise可以阻塞当前，执行回调函数，执行完回调函数再继续执行后面的代码
  
});

//对外可调用的内容
module.exports = router;